Skip to content

Feat/detection pose#329

Merged
MateoLostanlen merged 12 commits intodevelopfrom
feat/detection-pose-id
Apr 3, 2026
Merged

Feat/detection pose#329
MateoLostanlen merged 12 commits intodevelopfrom
feat/detection-pose-id

Conversation

@fe51
Copy link
Copy Markdown
Member

@fe51 fe51 commented Mar 18, 2026

The PR to close #328 Adapt detection creation to pyro-api updates

It introduces the following modifications :

  • Replace azimuth/azimuths with pose_ids in credentials.json, src/run.py, engine, README
  • Update create_detection call: (media, azimuth, bboxes) → (media, bboxes, pose_id) to match new pyro-api endpoint
  • Fix fill_empty_bboxes: use .tolist() to produce Python floats instead of np.float64
  • Skip alerts with empty bboxes instead of blocking the queue -> Added but should not happen
  • Add response.raise_for_status() on occlusion mask fetch to handle 404 gracefull
  • Log API response body on KeyError('id') for easier debug
  • Bump pinned pyroclient commit in requirements.txt to version with new create_detection signature

Now, it has to be tested on few sites, and need to work on updating credentials on all rpi fleet.

Happy to discuss it

Comment thread pyroengine/engine.py
@MateoLostanlen MateoLostanlen force-pushed the feat/detection-pose-id branch from a0a1cbf to 46aee4c Compare April 1, 2026 06:06
@fe51 fe51 mentioned this pull request Apr 1, 2026
Comment thread src/run.py Outdated
for pos_id, cam_azimuth in zip(cam_poses, cam_azimuths, strict=False):
splitted_cam_creds[ip + "_" + str(pos_id)] = (cam_data["token"], cam_azimuth, bbox_mask_url)
cam_pose_ids = cam_data["pose_ids"]
for pos_id, pose_id in zip(cam_poses, cam_pose_ids, strict=False):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to update theses names, too similar

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.27%. Comparing base (07b64c5) to head (408b2c4).
⚠️ Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
pyroengine/engine.py 78.94% 4 Missing ⚠️
pyroengine/sensors.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #329      +/-   ##
===========================================
+ Coverage    72.59%   73.27%   +0.68%     
===========================================
  Files            7        7              
  Lines          602      610       +8     
===========================================
+ Hits           437      447      +10     
+ Misses         165      163       -2     
Flag Coverage Δ
unittests 73.27% <77.27%> (+0.68%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MateoLostanlen MateoLostanlen merged commit 68255f3 into develop Apr 3, 2026
10 of 11 checks passed
@MateoLostanlen MateoLostanlen deleted the feat/detection-pose-id branch April 3, 2026 11:37
@MateoLostanlen MateoLostanlen mentioned this pull request Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt detection creation to pyro-api updates

2 participants